<?php
include_once("db.inc");
$sql = "select * from loaigianhang";
$result = mysql_query($sql);
$return = "";
$return = $return."	<div id=\"username-reg-box\" style=\"height:73px\">
                	Chọn tên người dùng của bạn<br />
                    <input style=\"height:28px;margin-top:3px; width:274px; border:1px solid #C0C0C0\" type=\"text\" id=\"username-reg\" onkeyup=\"CheckUsernameExist()\"/><br/>                    
					<b style=\"font-size:11px;padding-left:0px; visibility:hidden\" id=\"result_reg_username\"></b><br/>
                    </div>
                    <div id=\"password-reg-box\" style=\"height:73px\">
                   	Mật khẩu<br />
                    <input style=\"height:28px;margin-top:3px; width:274px; border:1px solid #C0C0C0\" type=\"password\" id=\"password-reg\" onkeyup=\"CheckPasswordReg()\"/><br/>
					<b style=\"color:red;font-size:11px;height:13px;padding-left:0px;visibility:hidden\" id=\"result_reg_pass\"></b><br/>
                    </div>
                    <div id=\"repassword-reg-box\" style=\"height:73px\">                    
                   	Xác nhận mật khẩu<br />
                    <input style=\"height:28px;margin-top:3px; width:274px; border:1px solid #C0C0C0\" type=\"password\" id=\"repassword-reg\" onkeyup=\"CheckRePasswordReg()\"/><br/>
					<b style=\"color:red;font-size:11px;padding-left:0px;visibility:hidden\" id=\"result_reg_repass\"></b><br/>
                    </div>
                    <div id=\"membername-reg-box\" style=\"height:60px\">                    
                    Tên doanh nghiệp<br />
                    <input style=\"height:28px;margin-top:3px; width:274px; border:1px solid #C0C0C0\" id=\"tendoanhnghiep-reg\" onkeyup=\"CheckTenDoanhNghiepReg()\"/><br />
					<b style = \"color:red;font-size:11px;padding-left:0px;visibility:hidden\" id=\"result_reg_tendoanhnghiep\"></b><br/>
                    </div>
                    
                    <div id=\"branch-reg-box\" style=\"display:none;height:73px\">                    
					Ngành nghề<br />
					<select style=\"height:30px;margin-top:3px; width:276px; border:1px solid #C0C0C0\" id=\"nganh-reg\">";
									while($row = mysql_fetch_array($result))
									{
										$MaLoaiGianHang = $row["maloaigianhang"];
										$TenLoaiGianHang = $row["tenloaigianhang"];
										$return = $return."<option value=\"$MaLoaiGianHang\">$TenLoaiGianHang</option>";
									}
 $return = $return."</select><br/>
					<b style = \"color:red;font-size:11px;padding-left:0px;visibility:hidden\" id=\"result_reg_nganhnghe\"></b><br/>
                    </div>
                    <div id=\"phone-reg-box\" style=\"display:none;height:73px\">                    
					Số điện thoại<br />
                    <input style=\"height:28px;margin-top:3px; width:274px; border:1px solid #C0C0C0\" id=\"sodienthoai-reg\" onkeyup=\"CheckSoDienThoaiReg()\"/><br/>
					<b style=\"color:red;font-size:11px;padding-left:0px;visibility:hidden\" id=\"result_reg_phone\"></b><br/>
                    </div>
                    <div id=\"fax-reg-box\" style=\"display:none;height:73px\">                    
					Số Fax<br />
                    <input style=\"height:28px;margin-top:3px; width:274px; border:1px solid #C0C0C0\" type=\"text\" id=\"Fax-reg\" onkeyup=\"CheckSoFaxReg()\" /><br/>
					<b style=\"color:red;font-size:11px;padding-left:0px;visibility:hidden\" id=\"result_reg_fax\"></b><br/>
                    </div>
                    <div id=\"address-reg-box\" style=\"display:none;height:60px\">                    
					Địa chỉ<br />
                    <input style=\"height:28px;margin-top:3px; width:274px; border:1px solid #C0C0C0\" type=\"text\" id=\"DiaChi-reg\" /><br />
					<b style=\"color:red;font-size:11px;padding-left:0px;visibility:hidden\" id=\"result_reg_address\"></b><br/>
                    </div>
					<b style=\"color:#00CC33;font-size:11px;padding-left:0px; visibility:hidden\" id=\"result_reg\">Đăng ký tài khoản thành công</b><br/>                    
                    <div id=\"btnReg-reg-box\" style=\"float:right;display:none;margin-right:24px\">                    
					<input style=\"margin-right:0px;\"type=\"button\" class=\"button\" value=\"Đăng ký\" onclick=\"Register()\"/><br/>
                    </div>
                    <div id=\"btnNextBack-reg-box\" style=\"float:right;margin-right:24px;\">                    
                    <input style=\"margin-right:0px;width:50px;\"type=\"button\" class=\"button\" value=\"Next\" id=\"btnNextBackReg\" onclick=\"NextReg()\"/><br/>
                    </div>				
					";
echo $return;					
?>

<!--<select style=\"margin-left:44px;\" id=\"nganh-reg\">";
									while($row = mysql_fetch_array($result))
									{
										$MaLoaiGianHang = $row["maloaigianhang"];
										$TenLoaiGianHang = $row["tenloaigianhang"];
										$return = $return."<option value=\"$MaLoaiGianHang\">$TenLoaiGianHang</option>";
									}
			$return = $return."</select><br/>	-->